<?php

/**************************************************************************
* Source File	:  Rubrique.php
* Author                   :  Marian
* Project name         :  Accueil Win'Design version 14* Created                 :  20/01/2015
* Modified   	:  20/01/2015
* Description	:  Definition of the class Rubrique
**************************************************************************/




class Rubrique 			
{
	//Attributes
		
	 
	Private $nom; 
	Private $description; 
	Private $DesArticles=array();
	
	// Setters
	public function __set($propriete, $valeur) {
	
		switch ($propriete) {
			case 'nom' : {
				$this->nom = $valeur;
				break;
			}
	
			case 'description' : {
				$this->description = $valeur;
				break;
			}
				
			case 'DesArticles' : {
				$this->DesArticles[count($this->DesArticles)+1] = $valeur;
				break;
			}
		}
	}
	//Operations
	 	
	public function __construct($vnom, $vdescription){
		$this->nom = $vnom;
		$this->description = $vdescription;
	}
	

} // End Class Rubrique


?>

